package com.nanfang51g3.ckz.ui.money.list;

import com.nanfang51g3.ckz.utils.KLog;

import dagger.Module;
import dagger.Provides;

/**
 * dagger2 模块 通过注入View 给P层 {@link MoneyDetailPresenter } ,@Inject 标记 {@link MoneyDetailPresenter }构造函数
 * {@link MoneyDetailPresenter }
 */
@Module
public class MoneyDetailPresenterModule {

    private final MoneyDetailContract.View mview;

    public MoneyDetailPresenterModule(MoneyDetailContract.View view) {
        KLog.i("TAG",view==null?"进入了...AccountingPresenterModule-is null":"进入了...AccountingPresenterModule-not null");
        this.mview = view;
    }

    @Provides
    MoneyDetailContract.View provideMeContractView() {
        return mview;
    }

}
